#-------------------------------------------------
#
# Project created by Trae AI
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = CroppingAlgorithm
TEMPLATE = lib
CONFIG += shared plugin

# 定义插件导出宏
DEFINES += IMAGEPROCESSINGMANAGERPLUGIN_LIBRARY

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


# 输出到主程序的图像处理算法（根据调试/发布模式 + 32/64位架构区分路径）
contains(CONFIG, debug) {
    # 调试模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/debug/x86/ImageProcessingAlgorithm
    } else {
        # 64位架构（兼容x86_64/amd64等）
        DESTDIR = ../../build/debug/x64/ImageProcessingAlgorithm
    }
} else {
    # 发布模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/release/x86/ImageProcessingAlgorithm
    } else {
        # 64位架构
        DESTDIR = ../../build/release/x64/ImageProcessingAlgorithm
    }
}

SOURCES += \
    CroppingAlgorithm.cpp \
    CroppingSettingsForm.cpp

HEADERS += \
    CroppingAlgorithm.h \
    CroppingSettingsForm.h \
    ../../ImageProcessingManagerPlugin/ImageProcessingAlgorithmBase.h

FORMS += \
    CroppingSettingsForm.ui

RESOURCES += \
    icon.qrc

# 依赖基类目录
INCLUDEPATH += ../../ImageProcessingManagerPlugin

